<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: csnf
  Date: 2024/12/26
  Time: 15:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>直播课堂管理系统</title>
</head>
<body>
<form action="CourseList.jsp">
    <input type="text" name="sName" placeholder="课程名称">
  <input type="submit" value="查询">
</form>
<table border="1" cellpadding="0" width="80%">
  <tr>
    <th>编号</th>
    <th>课程名称</th>
    <th>课程人数</th>
    <th>开始时间</th>
    <th>结束时间</th>
    <th>教师</th>
    <th>操作</th>
  </tr>
  <c:forEach items="${courseList}" var="course">
    <tr>
      <td>${course.id}</td>
      <td>${course.name}</td>
      <td>${course.count}</td>
      <td>${course.startDate}</td>
      <td>${course.endDate}</td>
      <td>${course.teacher}</td>
      <td>
        <a href="CourseServlet?action=delete&id=${course.id}">删除</a>
        <a href="CourseServlet?action=edit&id=${course.id}">修改</a>
      </td>
   </tr>
  </c:forEach>
</table>
</body>